<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.qm.hibernate.Tpost,com.qm.hibernate.Tblog"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>我的空间</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../Css/styles.css">
</head>
<body>
	<%
		List<Tpost> pc = (List<Tpost>) session.getAttribute("postComments");
		List<Tblog> bc = (List<Tblog>) session.getAttribute("blogComments");
		List<Tuser> friends = (List<Tuser>) session.getAttribute("friends");
	%>
	<%@ include file="../Public/myhomeHeader.jsp"%>
	<div id="container">
		<%@ include file="../Public/myLeft.jsp"%>
		<div id="middle">
			<%=user.getName()%>
			的新消息
			<ul>
				<%
					for (int i = 0; i < pc.size(); i++) {
				%>

				<li><a href="postAction?id=<%=pc.get(i).getId()%>"> 你的帖子《<%=pc.get(i).getTitle()%>》有了新评论
				</a>
				</li>
				<%
					}
				%>

				<%
					for (int i = 0; i < bc.size(); i++) {
				%>

				<li><a href=<%="myJournal"%>> 你的日志《<%=bc.get(i).getTitle()%>》有了新评论
				</a>
				</li>
				<%
					}
				%>

			</ul>
			<br /> <br />
		</div>
		<div id="right" style="float:right">
			好友列表
			<ul>

				<%
					for (int i = 0; i < friends.size(); i++) {
				%>
				<li><a href="hisIndex?id=<%=friends.get(i).getId()%>"><%=friends.get(i).getName()%></a></li>
				<%
					}
				%>
			</ul>
		</div>

	</div>

	<div id="footer"></div>
</body>
</html>



